﻿package Cain
{
	import Cain.MkMc.Bk;
	import flash.display.BlendMode;
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	/**
	 * SEO v1.1 2010.12.6
	 * @author Cain
	 */
	public class  Copy_cain extends TextField
	{
		private var _root:Sprite;
		public function Copy_cain():void 
		{
			width = 0;
			x = -12767;
			y = -12768;
			super();
			text = "as3 code by 朱信曄 in 雄獅旅遊 2010 cainmaila@gmail.com";
			blendMode = BlendMode.LAYER;
			alpha = 0;
			mouseEnabled = false;
		}
		public function add(_sp:Sprite):void
		{
			_root = Sprite(_sp.root);
			if (_root is MovieClip)
			{
				MovieClip(_root).addFrameScript(0, code);
			}else 
			{
				code();
			}
		}
		
		private function code():void
		{
			_root.addChild(this);
			var _bk:Bk = new Bk(stage.stageWidth, stage.stageHeight, 0xffffff, 1);
		}
	}
	
}